package com.jxb.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(consumerGroup = "MyConsumerGroup1",topic = "xiaoxiguiji-product")
public class GuiJiConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("Received 生产者 TestTopic 消息轨迹 : "+ s);
    }
}
